package globalCode;

import java.net.URL;
import java.rmi.RMISecurityManager;

//Currently unused class handling the security policies - replaced by the signed jar.

public class PolicyHandler {

	public PolicyHandler(){}
	
	public String setPolicies(){
		ClassLoader cl = getClass().getClassLoader(); 
		URL policyURL = cl.getResource("policy/client.policy");
		System.setProperty("java.security.policy",policyURL.toString());
		System.setSecurityManager(new RMISecurityManager());
		return policyURL.toString();
	}
	
}
